//window.name = 'NG_DEFER_BOOTSTRAP!';

require([
    'map3d.polyfills',
    'angular',
    'uiApp',
    'domReady',
    'DomEvents'
], function (polyfills, angular, app, domReady, DomEvents) {
    //NOTE: domReady sometimes fails under uglify

    require(['domReady!'], function (document) {
        document = document || window.document;
        angular = angular || window.angular;
        if (document.getElementsByTagName('html')[0].attributes['webdriver'] === undefined) {
            angular.bootstrap(document, ['modelEditor']);
        }
    });
});